package com.wicket.okrapp.integration.dto;


import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
import javax.validation.constraints.NotNull;


/**
 * @desc CycleTypeDto
 * @使用场景
 */
@Data
public class CycleTypeDto extends BaseDto implements Serializable {

    /**
     * 周期类型标识:
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    /**
     * 周期类型ID:
     */
    @ApiModelProperty("周期类型ID")
    private String cycleTypeId;
    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 周期类型名称:
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
/**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String	 isArchive;
/**
     * 周期类型 
     */
    @NotNull(message = "周期类型不能为空")
@ApiModelProperty("周期类型")
    private String	 cycleType;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      CycleTypeDto that = (CycleTypeDto) o;
      return  cycleTypeCode == that.cycleTypeCode&&cycleTypeId == that.cycleTypeId&&orderNumber == that.orderNumber&&cycleTypeName == that.cycleTypeName&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&isArchive == that.isArchive&&cycleType == that.cycleType;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), cycleTypeCode,cycleTypeId,orderNumber,cycleTypeName,subjectLifeCycle,operationInductionId,operateTime,isArchive,cycleType);
    }

}
